<div class="main_container">
	<?php 
	extract($params);
	if($view_limit == '')
	{
		$view_limit = 20;
	}?>
	<?php
	unset($tags->Html);
	$tags->Html = $appHtml;
	$tags = $tags->genrateCloud('Listing',SiteUrl::getUrl('tag',array('[[tag]]')),22,12,$view_limit,false);
	if(!empty($tags))
	{?>
		<?php echo $tags;?>
		<?php if($view_all_link)
		{?>
			<div class="clear"></div>
			<a href="<?php echo $appHtml->url(SiteUrl::getUrl("tags"))?>" class="fr"><?php echo __("View all")?></a>
			<div class="clear"></div>
		<?php }?>

	<?php }else{?>
		<?php echo "<h4 class='no_results'>".__("No tags found!")."</h4>"?>
	<?php }?>
</div>